package end.ser.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import end.dao.CustomerDAO;
import end.ser.CustomerSER;

/**
 * 
 * CustomerSER.java 2016-6-26
 * 
 * Copyright zhaocj Inc. All rights reserved. Love Me Like Love Justin Bieber
 */
@Service("customerSER")
public class CustomerSERImp<T> extends BaseSERImp<T> implements CustomerSER<T> {
	@Autowired
	private CustomerDAO<T> mapperDAO;

	public CustomerDAO<T> getMapperDAO() {
		return mapperDAO;
	}

	public void setMapperDAO(CustomerDAO<T> mapperDAO) {
		this.mapperDAO = mapperDAO;
	}

	@Override
	public List<T> selectByRandom() {
		return getMapperDAO().selectByRandom();
	}

	@Override
	public T selectByCustomer(Object key) {
		return getMapperDAO().selectByCustomer(key);
	}

}
